\hypertarget{ram_8h}{
\section{ram.h File Reference}
\label{ram_8h}\index{ram.h@{ram.h}}
}
{\ttfamily \#include $<$tigcclib.h$>$}\par
{\ttfamily \#include \char`\"{}jstack.h\char`\"{}}\par
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{ram_8h_af2024b663e5962bae93a9f72f33821ae}{NUM\_\-ARGS}~6
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
float \hyperlink{ram_8h_af129554ebce2d89e788eb46f3a3547bc}{value\_\-at\_\-point} (ESI expression, ESI var, float x)
\item 
float \hyperlink{ram_8h_a549bc93c3536bde8ffbcca9bb5035fda}{riemann\_\-sum} (ESI expression, ESI var, float lower\_\-bounds, float upper\_\-bounds, unsigned int numsteps, float offset)
\item 
float \hyperlink{ram_8h_a0415ba140e87ce3dca1acc1017f36fc7}{trap\_\-rule} (ESI expression, ESI var, float lower\_\-bounds, float upper\_\-bounds, unsigned int numsteps)
\end{DoxyCompactItemize}


\subsection{Define Documentation}
\hypertarget{ram_8h_af2024b663e5962bae93a9f72f33821ae}{
\index{ram.h@{ram.h}!NUM\_\-ARGS@{NUM\_\-ARGS}}
\index{NUM\_\-ARGS@{NUM\_\-ARGS}!ram.h@{ram.h}}
\subsubsection[{NUM\_\-ARGS}]{\setlength{\rightskip}{0pt plus 5cm}\#define NUM\_\-ARGS~6}}
\label{ram_8h_af2024b663e5962bae93a9f72f33821ae}
The number of arguments that this program will take from the expression stack. 

\subsection{Function Documentation}
\hypertarget{ram_8h_a549bc93c3536bde8ffbcca9bb5035fda}{
\index{ram.h@{ram.h}!riemann\_\-sum@{riemann\_\-sum}}
\index{riemann\_\-sum@{riemann\_\-sum}!ram.h@{ram.h}}
\subsubsection[{riemann\_\-sum}]{\setlength{\rightskip}{0pt plus 5cm}float riemann\_\-sum (ESI {\em expression}, \/  ESI {\em var}, \/  float {\em lower\_\-bounds}, \/  float {\em upper\_\-bounds}, \/  unsigned int {\em numsteps}, \/  float {\em offset})}}
\label{ram_8h_a549bc93c3536bde8ffbcca9bb5035fda}
Returns the Riemann sum of the argument \char`\"{}expression\char`\"{}. The \char`\"{}var\char`\"{} argument is the variable which changes; it is analagus to the variable of integration. The bounds are determind by lower\_\-bounds and upper\_\-bounds, and the number of steps is determined by numsteps. Assuming left Riemann sums are the default operation, offset $\ast$ dx (with var as x), will be added to the location of every sampling point. This effectively shifts over the location on which the sum is being taken. Thus, for example, one could do a right riemann sum by setting offset to 1. \hypertarget{ram_8h_a0415ba140e87ce3dca1acc1017f36fc7}{
\index{ram.h@{ram.h}!trap\_\-rule@{trap\_\-rule}}
\index{trap\_\-rule@{trap\_\-rule}!ram.h@{ram.h}}
\subsubsection[{trap\_\-rule}]{\setlength{\rightskip}{0pt plus 5cm}float trap\_\-rule (ESI {\em expression}, \/  ESI {\em var}, \/  float {\em lower\_\-bounds}, \/  float {\em upper\_\-bounds}, \/  unsigned int {\em numsteps})}}
\label{ram_8h_a0415ba140e87ce3dca1acc1017f36fc7}
This function is very similar to riemann\_\-sum, except that it computes the trapezoid rule instead, and $\ast$ has no \char`\"{}offset\char`\"{} argument, because there are no variations on the trapeziod rule. \hypertarget{ram_8h_af129554ebce2d89e788eb46f3a3547bc}{
\index{ram.h@{ram.h}!value\_\-at\_\-point@{value\_\-at\_\-point}}
\index{value\_\-at\_\-point@{value\_\-at\_\-point}!ram.h@{ram.h}}
\subsubsection[{value\_\-at\_\-point}]{\setlength{\rightskip}{0pt plus 5cm}float value\_\-at\_\-point (ESI {\em expression}, \/  ESI {\em var}, \/  float {\em x})}}
\label{ram_8h_af129554ebce2d89e788eb46f3a3547bc}
Returns the float value of expression, when var is set to the value x. 